apiVersion: v1
kind: BuildConfig
metadata:
  name: nuancier-build
  labels:
    environment: "nuancier"
spec:
  output:
    to:
      kind: ImageStreamTag
      name: nuancier:latest
  source:
    type: Git
    git:
      uri: https://pagure.io/nuancier.git
{% if env == 'staging' %}
      ref: "staging"
{% else %}
      ref: "production"
{% endif %}
  strategy:
    type: Source
    sourceStrategy:
      from:
        kind: ImageStreamTag
        namespace: openshift
        name: python:2.7
  triggers:
  - type: ConfigChange
  - type: ImageChange
